SM Instruments CTOD Communication Driver

 

SM Instruments CTOD is driver to communicate with CTOD device of SM Instruments Corp., in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of SM Instruments CTOD communication driver.

<Figure 1> Read setting example of SM Instruments CTOD driver

Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to device.

Also, you can input End code value of protocol as number(0, ~ 255, Default = 4(EOT)) at Option part.

 

SM Instruments CTOD communication driver's read schedule

Read schedule setting parameters are as follows : 

1)    STATION – Input device number between 1 and 31.

2)    Read Command – Enter READ or MONITOR.

3)    Read Start Address – Don't care. (In case of READ command, fix the start address as 1)

4)    Save start address for Communication Server – Saving start address of Communication Server.

5)    Read Size - Number of data to read. (Always set as 1, refer to <Table 1>, in case of READ command, fixed to 9)

 

Read schedule example)

READ,     1,     READ,     0,    0,   1,

 

<Table 1> and <Table 2> are read value save address and contents of SM Instruments CTOD communication driver's READ/MONITOR read command.

Save Address

Save Contents

Remarks

Save addr + 0

Version information

010h : Ver 1.00   011h : Ver 1.10

Save addr + 1

LED1 status

Bit 0 ~ 2 : R/S/T phase Relay contact point LED,

Bit 3 : Don't care,

Bit 4 ~ 6 : R/S/T phase failure LED,

Bit 7 : Don't care.

Save addr + 2

LED2 status

Bit 0 ~ 2 : R/S/T phase detection LED,

Bit 3 : Don't care,

Bit 4 : Failure integration contact point output display LED,

Bit 5 : -(Input open detection contact point integration output display LED)

Bit 6~7 : Don't care.

Save addr + 3

Relay output status

Bit 0 ~ 2 : R/S/T phase contact point output,

Bit 3 : Don't care,

Bit 4 : Failure integration contact point output,

Bit 5 : Input open detection contact point integration output

Bit 6~7 : Don't care.

Save addr + 4

Motion detection voltage

0 (30V), 1 (60V), 2 (90V), 3 (120V)

Save addr + 5

Relay output delay time

0 (1 sec), 1 (2 sec), 2 (3 sec), 3 (4 sec)

Save addr + 6

Relay output MODE

0 (Simultaneous output), 1(Each output)

<Table 1> Read value save address and contents of SM Instruments CTOD communication driver's READ command

Save Addr

Save Contents

Remarks

Save addr + 0

First monitoring data

Value between 0 and 255

Save addr + 1

Second monitoring data

Value between 0 and 255

<Table 2> Read value save address and contents of SM Instruments CTOD communication driver's MONITOR command

Read value of SM Instruments CTOD communication driver is saved at WORD/DWORD/FLOAT memory as same value(Only, save format is different).

If you click the icon 2 in protocol option part at <Figure 1>, you can see the dialog box such as <Figure 2>. You can also set read schedule by using this part.

<Figure 2> Example of SM Instruments CTOD driver's Option dialog box
You can set read schedule by using 3, 4, 5 button and listbox of <Figure 2>.

Also, you can set End code value(0 ~ 255) of protocol at 'End Code Number' of <Figure 2>.

<Figure 3> SM Instruments CTOD driver's read schedule Add/Edit dialog box

When you click Add button or Edit button in dialog box of <Figure 2>, dialog box of <Figure 3> is shown.

2. Writing settings

You can Test or Reset the device by using writing setting of SM Instruments CTOD communication driver.

 

Digital Write

Digital write and analog write have the same setting parameters except output value(0 or 1). 

 

Analog Write

You can read/write, print the current value of card by using analog write. 

Analog write setting parameters are as follows: 

1)  PORT                  Connected communication port number. (Not COM number)

2)  STATION              Input device number between 1 and 31.

3)  ADDRESS            Don't care.

4)  Extra1                  Input output command of TEST or RESET.

5)  Extra2                  Don't care.

 

Write example 1)

PORT : 0   STATION : 1   ADDRESS : 0000  EXTRA1 : TEST  EXTRA2 : 0

If you set as above and write analog value, you can test no.1 SM Instruments CTOD device connected with no.0 port.

 

Write example 2)

PORT : 0   STATION : 1   ADDRESS : 0000  EXTRA1 : RESET  EXTRA2 : 0

If you set as above and write analog value, you can reset no.1 SM Instruments CTOD device connected with no.0 port.

 

3. Communication cable and power connection

Connect communication cable and basic power of SM Instruments CTOD device, as follows.

 

Communication cable connection

Connect RS-485, +, - terminal of computer side to no.16(RS-485 + terminal), no.17(RS-485 - terminal) terminal of CTOD device, such as <Figure 4>.

1
<Figure 4> Appearance of connecting communication cable, basic power and etc to SM Instruments CTOD device

Basic power connection

Connect 90~260V AC/DC basic power to no.20, no.21 terminal of CTOD device, such as <Figure 4>.